package android.demo.activity.passvalue;

import android.content.Intent;
import android.demo.BaseActivity;
import android.demo.R;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class SecondActivity extends BaseActivity {

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.second);
		Button btn = (Button) findViewById(R.id.btnReturn);
		btn.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = getIntent();
				SecondActivity.this.setResult(0, intent);
				SecondActivity.this.finish();
			}
		});
	}
}
